package mvc.core;

import java.lang.reflect.Method;
import java.util.List;

/**
 * 请求URI路径,方法和Action方法的一一映射
 * 
 * @author liuzy
 * @version 2015年5月16日
 */
public class ActionMapping {
	private final Class<?> controllerClass;
	private final String mappingPath;
	private final List<String> type;
	private final Method method;

	public ActionMapping(String mappingPath, List<String> type, Class<?> controllerClass, Method method) {
		this.controllerClass = controllerClass;
		this.mappingPath = mappingPath;
		this.type = type;
		this.method = method;
	}

	protected Class<?> getControllerClass() {
		return controllerClass;
	}

	protected String getMappingPath() {
		return mappingPath;
	}

	protected List<String> getType() {
		return type;
	}

	protected Method getMethod() {
		return method;
	}
}
